Replace tag dispatch with if constexpr for _Choose_pocca, _Choose_pocma#2217
Replace tag dispatch with if constexpr for _Choose_pocca, _Choose_pocma#2217StephanTLavavej merged 16 commits intomicrosoft:mainfrom
if constexpr for _Choose_pocca, _Choose_pocma#2217Conversation
if constexpr for _Choose_poccaif constexpr for _Choose_pocca, _Choose_pocma
StephanTLavavej
left a comment
There was a problem hiding this comment.
Thanks! I've validated and will push changes.
|
FYI @CaseyCarter, I pushed changes after you approved. As @AlexGuteniev noted, in #2217 (comment) you had asked for The necessary code is a simple guard type, expressed with a (We could actually drop the guard type and repeat the invariant checks before every return - which would be less severe than duplicating the actual logic - but I felt that the guards were the simplest.) Requesting double-final review as these changes are a bit larger than the typical stuff I push. |
|
I'm mirroring this to an MSVC-internal PR; please notify me if any further changes are pushed. |
|
Thanks for improving this code - all shall love |
…e_pocma` (microsoft#2217) Co-authored-by: Stephan T. Lavavej <stl@microsoft.com>
Towards #189